package com.xzq.erp.service;

import jakarta.validation.constraints.NotEmpty;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IFileService {

    /**
     * 文件上传
     * @param file
     * @return
     */
    String fileUpload(MultipartFile file);

    /**
     * 删除文件
     * @param fileName
     */
    void deleteFile(String fileName);

    /**
     * 批量删除文件
     * @param fileNames
     */
    void deleteFiles(@NotEmpty List<String> fileNames);
}
